package cn.hnbjx.prepaid.utils;

import org.springframework.util.DigestUtils;

/**
 * MD5工具类
 *
 * @author pibigstar
 */
public class MD5Util {
    /**
     * 生成md5
     *
     * @param plainText
     * @return
     */
    public static String getMD5(String plainText) {
        return DigestUtils.md5DigestAsHex(plainText.getBytes());
    }

}